/**
     * 路由配置
     * 集中管理应用的所有路由路径
     */
    const routes = {
      // 首页
      home: '/',
      
      // 创建知识库
      createKnowledgeBase: '/create-kb',
      
      // 知识库详情
      knowledgeBase: (kbId, kbName) => 
        `/kb/${kbId}${kbName ? `?name=${encodeURIComponent(kbName)}` : ''}`,
      
      // 上传文档
      uploadDocument: (kbId, kbName) => 
        `/kb/${kbId}/upload${kbName ? `?name=${encodeURIComponent(kbName)}` : ''}`,
      
      // 文档详情
      documentDetail: (kbId, docId, kbName) => 
        `/kb/${kbId}/doc/${docId}${kbName ? `?name=${encodeURIComponent(kbName)}` : ''}`,
      
      // 编辑文档
      editDocument: (kbId, docId, kbName) => 
        `/kb/${kbId}/doc/${docId}/edit${kbName ? `?name=${encodeURIComponent(kbName)}` : ''}`,
    };

    export default routes;
